﻿@model EM.OA.Portal.Models.SystemPageModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/SystemSetting/SystemPage.js"></script>
<div>
    @*list*@
    <table id="list" class="easyui-datagrid" toolbar="#toolbar">
    </table>
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
        <div id="tb" style="padding: 3px">
            <span>@Html.LabelFor(m => m.PageName)</span>
            @Html.TextBoxFor(m => m.PageName, new { @class = "easyui-validatebox" })
            <a href="#" class="easyui-linkbutton" iconcls="icon-search" plain="true" onclick="doSearch()">查询</a>
        </div>
    </div>

    @*Detail*@
    <div id="dlg" class="easyui-dialog" style="width: 350px; height: 300px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true">
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.PageID)
            <table>
                <tr>
                    <td>@Html.LabelFor(m => m.PageName)</td>
                    <td>
                        <input name="PageName" class="easyui-validatebox" data-options="required:true,validType:'length[1,200]'"></td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.PageUrl)</td>
                    <td>
                        <input name="PageUrl" class="easyui-validatebox" data-options="required:true,validType:'length[1,500]'"></td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.PageDescription)</td>
                    <td>@Html.TextAreaFor(m => m.PageDescription, new { @cols = "20", @rows = "5", @class = "easyui-validatebox", @required = "true", @validType = "length[1,1000]" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.IsVisible)</td>
                    <td>@Html.CheckBoxFor(m => m.IsVisible)</td>
                </tr>
            </table>
        </form>
    </div>

</div>
